#pragma once
#include"ClientSocket.h"
#include<string>
using namespace std;
class MessagePro
{
public:
	MessagePro();
	MessagePro(CString ,int);
	~MessagePro();
	bool Init();
	bool SendMsg(const char*);
	bool SendMsg(string str);

	bool ReceiveMsg();
	void FormatMsg(string str);

	bool ReceiveLoginInfo(string &);
private:
	 CClientSocket *m_pSock;
	CString m_strServerip;
	int m_port;
	bool flag;
};